<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<!--阻止百度转码-->
<meta http-equiv="Cache-Control" content="no-transform"/>
<!--国产浏览器高速模式-->
<meta name="renderer" content="webkit">

<meta http-equiv="Cache-Control" content="no-store"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>

<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- Favicons -->
<link rel="apple-touch-icon-precomposed" sizes="65x65" href="${ctx}/static/images/shortcut_icon.png">
<link rel="shortcut icon" href="${ctx}/static/images/shortcut_icon.png">

<link rel="stylesheet" href="${ctx}/static/js/bootstrap/3.3.5/css/bootstrap.min.css">

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="${ctx}/static/js/bootstrap/html5shiv.js"></script>
<script src="${ctx}/static/js/bootstrap/respond.js"></script>
<![endif]-->
<script src="${ctx}/static/js/bootstrap/jquery-1.11.0.js"></script>
<script src="${ctx}/static/js/jquery-cookie/jquery.cookie.js"></script>
<script src="${ctx}/static/js/bootstrap/3.3.5/js/bootstrap.js"></script>
<script src="${ctx}/static/js/bootbox/4.4/bootbox.js"></script>

<script src="${ctx}/static/js/jquery-form/jquery.form.js"></script>
<script src="${ctx}/static/js/jquery-validate/jquery.validate.js"></script>
<script src="${ctx}/static/js/jquery-validate/additional-methods.js"></script>
<script src="${ctx}/static/js/mustache/mustache.js"></script>

<link rel="stylesheet" href="${ctx}/static/js/font-awesome-4/css/font-awesome.css">

<link rel="stylesheet" href="${ctx}/static/js/nprogress/nprogress.css">
<script src="${ctx}/static/js/nprogress/nprogress.js"></script>

<link rel="stylesheet" href="${ctx}/static/js/artDialog/6.0.4/css/ui-dialog.css">
<script src="${ctx}/static/js/artDialog/6.0.4/dialog.js"></script>
<script src="${ctx}/static/js/artDialog/6.0.4/dialog-plus.js"></script>

<script src="${ctx}/static/js/jquery-blockUI/jquery.blockUI.js"></script>
<script src="${ctx}/static/js/My97DatePicker/4.72/WdatePicker.js"></script>

<link rel="stylesheet" href="${ctx}/static/css/utils.css">
<link rel="stylesheet" href="${ctx}/static/css/common.css">
<link rel="stylesheet" href="${ctx}/static/css/pagefunction.css">
<script>
    //jquery ajax全局设置
    $.ajaxSetup({
        beforeSend: function (xhr) {
            NProgress.start();
            NProgress.inc(0.6);
        },
        complete: function (xhr, status) {
            NProgress.done();
        },
        cache: false
    });

    window.P = window.DefineAppConfig = {
        token: ''
    };

    (function (P) {
        $.extend(P, ${DefineAppConfig})
        //统一部分插件命名空间
        P.render = Mustache.render;
        /**
         * @param param.type  error,success
         */
        P.messager = function (param) {
            var d = dialog({
                id: 'global-messager',
                quickClose: true,
                zIndex:2000                  ,
                skin: param.type == 'error' ? 'red' : 'green',
                content: param.content || ' '
            });
            d.show();
            setTimeout(function () {
                d.close().remove();
            }, 3000);
        };
    })(window.P || {});
</script>
<script src="${ctx}/static/js/common.js"></script>
